<?php
if(isset($_GET["action"])) //check if the request exists
	{
	switch($_GET["action"]) //verify what kind of request is it
		{
		case "add": //the request is an add request
			//perform task
		break;
		}
	}
?>